package com.yzt.act.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yzt.act.entity.CommAssignee;
import com.yzt.act.mapper.CommAssigneeMapper;
import com.yzt.act.service.ICommAssigneeService;
import com.yzt.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 全局流程审核办理人表 服务实现类
 * </p>
 *
 * @author Y
 * @since 2021-04-08
 */
@Service
public class CommAssigneeServiceImpl extends BaseServiceImpl<CommAssigneeMapper, CommAssignee>
		implements ICommAssigneeService {

	@Override
	public CommAssignee getAssignee(String did, String taskId) {
		CommAssignee assignee = this.getOne(
				Wrappers.<CommAssignee>lambdaQuery().eq(CommAssignee::getDid, did).eq(CommAssignee::getTaskId, taskId));
		return assignee;
	}

}
